package business.report.impl;

import business.report.ConstructionDesEnterprisesService;
import business.report.ConstructionEnterprisesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import report.domain.ConstructionDesEnterprises;
import report.domain.ConstructionDesEnterprisesCriteria;
import report.domain.ConstructionEnterprises;
import report.domain.ConstructionEnterprisesCriteria;
import report.mapper.ConstructionDesEnterprisesMapper;
import report.mapper.ConstructionEnterprisesMapper;

import java.util.List;

/**
 * Created by SunZZ on 2016/6/19.
 */
@Service(value = "cdEnterprisesService")
public class ConstructionEnterprisesServiceImpl implements ConstructionEnterprisesService{
    @Autowired
    ConstructionEnterprisesMapper constructionEnterprisesMapper;

    @Override
    public List<ConstructionEnterprises> getConstructionEnterprises() {
        ConstructionEnterprisesCriteria criteria =new ConstructionEnterprisesCriteria();
        criteria.createCriteria().getAllCriteria();
        return constructionEnterprisesMapper.selectByExample(criteria);
    }
}
